package com.zdft.promotion;

/**
 * Created by Administrator.
 */
public class RpcServiceException extends RuntimeException {
    private String errorCode;
    private String errorMessage;

    public RpcServiceException(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getMessage() {
        return errorMessage;
    }

    @Override
    public final Throwable fillInStackTrace() {
        return null;
    }

    @Override
    public String toString() {
        return "RpcServiceException{" +
               "errorCode='" + errorCode + '\'' +
               ", errorMessage='" + errorMessage + '\'' +
               '}';
    }
}
